#ifndef PROMPTWIDGET_H
#define PROMPTWIDGET_H

#include <QWidget>

class MyButton;

class PromptWidget : public QWidget
{
    Q_OBJECT
public:
    explicit PromptWidget(QWidget *parent = 0,QString str = "",int tp = 0);
    ~PromptWidget();
    void paintEvent(QPaintEvent *);

    QString             m_textstr;
    MyButton            *m_yesbtn;
    MyButton            *m_nobtn;
    int                 m_tp;
signals:
    void click(int i);
public slots:
    void yesclick();
    void noclick();
};

#endif // PROMPTWIDGET_H
